/// GiftCardCategoryDto
class GiftCardCategoryDto {
  /// 卡种类id
  final int typeId;
  /// 卡分类名称
  final String categoryName;
  /// 折扣，小数
  final String discount;
  /// 最小额度
  final int minimum;
  /// 预计核销处理时长，单位：分钟
  final int takeTime;

  GiftCardCategoryDto({
    required this.typeId,
    required this.categoryName,
    required this.discount,
    required this.minimum,
    required this.takeTime,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['typeId'] = typeId;
    data['categoryName'] = categoryName;
    data['discount'] = discount;
    data['minimum'] = minimum;
    data['takeTime'] = takeTime;
    return data;
  }

  factory GiftCardCategoryDto.fromJson(Map<String, dynamic> json) {
    return GiftCardCategoryDto(
      typeId: json['typeId'],
      categoryName: json['categoryName'],
      discount: json['discount'],
      minimum: json['minimum'],
      takeTime: json['takeTime'],
    );
  }
}